package com.diandi.signature.mapper;


import com.diandi.signature.bean.pkgmsg.SignatureBusinessPkgmsg;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 签章业务端报文Mapper接口
 * @author mwz
 * @create 2017-08-23 14:03
 * @version V1.0.0
 */
@Repository
public interface SignatureBusinessPkgmsgMapper {



    /**
     * 插入签章业务端报文
     * @param signatureBusinessPkgmsg
     * @return
     */
    public Integer insertSignatureBusinessPkgmsg(SignatureBusinessPkgmsg signatureBusinessPkgmsg);

    /**
     * 根据业务ID得到签章业务端报文
     * @param paramMap
     * @return
     */
    public SignatureBusinessPkgmsg getSignatureBusinessPkgmsgByCode(Map<String, String> paramMap);

    /**
     * 根据交易流水号得到报文信息
     * @param paramMap
     * @return
     */
    public SignatureBusinessPkgmsg getSignatureBusinessPkgmsgByTrade(Map<String, String> paramMap);

    /**
     * 更新签章业务端报文
     * @param signatureBusinessPkgmsg
     * @return
     */
    public Integer updateSignatureBusinessPkgmsg(SignatureBusinessPkgmsg signatureBusinessPkgmsg);


}
